#include "SceneInstanceBuilding.h"
#include <QString>
#include <QFile>
#include <QTextStream>
#include <osg/Geometry>
#include <osg/Geode>
#include <osgDB/ReaderWriter>
#include <osgDB/ReadFile>
#include <osgDB/WriteFile>
#include "../InsConfig.h"

#include  <osgUtil/SmoothingVisitor>
#include <osgUtil/Optimizer>
#include <osg/Point>


osg::Node * SceneInstanceBuilding::getNode(std::string path, InsConfig * cfg)
{
	std::string scene = path.substr(path.size() - 7,6);
	std::string obj_file = path + scene + ".2.osgb";
	std::string buildings_gt_file = path + "buildings_gt.txt";

	osg::Node* node = osgDB::readNodeFile(obj_file);
	osg::Group* group = node->asGroup();


	return node;
}
